$(document).ready(function(){
	$("#seach_type_client").hide();
	$("input[name='abop']").change(function(){
		if(this.value == "true"){
			$("#seach_type_client").fadeOut("normal");
			$("#seach_type_clientType").show("slow");
			$("#seach_type_clientType").attr("value","");
		}else{
			$("#seach_type_clientType").fadeOut("normal");
			$("#seach_type_client").show("slow");
		}
	});
	
	$("#clientType_select_au").change(function(){
		$("input[name='priceSeachBean.classNum']").attr("value",this.value);
	});

	$("#clientSeachBtn_au_air").click(function(){
		asyncbox.open({
			url : "../airliftPrice_readfindCustomers.action",
			width : 950,
			height : 450,
			top : 65,
			drag : false,
			modal : true,
			scrolling : "yes",
			title : "客户信息",
			tipsbar : {
				title : '客户信息查询',
				content : '客户信息查询'
			},
			btnsbar : $.btn.OKCANCEL,
			callback : function(action,iframe,returnValue){
				if(action == 'ok'){
					var strs = returnValue.split("|:,:|");
					$("input[name='priceSeachBean.classNum']").attr("value",strs[0]);
					$("#client_au_air").attr("value",strs[1]);
				}
			}
		});
	});
	
	$("#seachChannelBtn_au_air").click(function(){
		asyncbox.open({
			url : "pricemanager/Price/findAirliftChannel.jsp",
			width : 650,
			height : 450,
			top : 65,
			drag : false,
			modal : true,
			scrolling : "yes",
			title : "国际空运渠道信息",
			tipsbar : {
				title : '国际空运渠道信息查询',
				content : '国际空运渠道信息查询'
			},
			btnsbar : $.btn.OKCANCEL,
			callback : function(action,iframe,returnValue){
				if(action == 'ok'){
					var strs = returnValue.split("|:,:|");
					$("#channelName_au_air").attr("value",strs[1]);
				}
			}
		});
	});

});